﻿namespace Shared_Mutex_Manager_Test.Locking
{
    /// <summary>
    ///  Event argument used when the lock is about to wait for ownership
    /// Setting WaitAborted = True aborts the wait process
    /// </summary>
    public class SharedMutexWaitAbortCheckEventArgs : SharedMutexEventArgs
    {
        public SharedMutexWaitAbortCheckEventArgs(string mutexName)
            : base(mutexName)
        {
        }

        /// <summary>
        ///     Indicates if Wait was aborted
        /// </summary>
        public bool Aborted { get; set; }
    }
}